import ProxyInterface from '../proxy-interface';
import { QuotaModel } from '../model/projects';

class QuotaProxy implements ProxyInterface<QuotaModel> {
  public quotaModel = new QuotaModel()
  constructor (responseData) {
    let data = responseData.data || responseData
    Object.assign<QuotaModel, QuotaModel>(this.quotaModel, data)
  }

  getModel (): QuotaModel {
    return this.quotaModel
  }
}

export default QuotaProxy
